
<TABLE cellSpacing=1 cellPadding=0 width="96%" align=center border=0 style="text-align:left; padding-bottom:5px;padding-left:0px;">
  <TBODY>
    <TR>
      <TD><form action="<?php echo $action?>" method="get">
          <?php
			foreach($param as $name=>$value):
			?>
          <input type="hidden" name="<?php echo $name?>" value="<?php echo $value?>">
          <?php endforeach;?>
          <?php if(isset($sfield)):?>
          <input type="text" class="inputstyle"  style="width:150px;" name="keyword" value="<?php echo stripcslashes($_GET['keyword']);?>">
          <select class="" name="sfield">
            <option value="">
			<?php echo $this->lang->line('tpl_searchcondition');?>
			</option>
            <?php foreach($sfield as $f=>$v):?>
            <option value="<?php echo $f?>"<?php if($f==$_REQUEST['sfield']):?> selected="selected"<?php endif;?>>
            <?php echo $v?>
            </option>
            <?php endforeach;?>
          </select>
          <?php endif;?>
		  <?php
		  if(isset($options)):
		  ?>
		  <?php foreach($options as $f=>$v):?>
		  <select name="<?php echo $f?>" class="">
		  	<?php foreach($v as $value=>$text):?>
			 <option value="<?php echo $value?>"<?php if(isset($_REQUEST[$f])&&$value==$_REQUEST[$f]):?> selected="selected"<?php endif;?>><?php echo $text?></option>
			<?php endforeach;?>
		  </select>
		   <?php endforeach;?>
		  <?php endif;?>
          <?php
		  if(isset($sortfiled)):
		  ?>
          <select name="order" class="">
            <option value=""><?php echo $this->lang->line('tpl_sort');?></option>
            <?php foreach($sortfiled as $f=>$v):?>
            <option value="<?php echo $f?>"<?php if($f==$_REQUEST['order']):?> selected="selected"<?php endif;?>>
            <?php echo $v?>
            </option>
            <?php endforeach;?>
          </select>
		  <select name="sort" class="">
		  	<option value="0"><?php echo $this->lang->line('tpl_sort_desc');?></option><!--DESC -->
		  	<option value="1" <?php if($_REQUEST['sort']):?> selected="selected"<?php endif;?>><?php echo $this->lang->line('tpl_sort_asc');?></option><!--asc -->
		  </select>
          <?php
		 endif;
		  ?>
		  <?php if(!empty($others))echo $others;?>
          <INPUT class=btn type="submit" value="<?php echo $this->lang->line('tpl_act_search');?>">
        </form></TD>
    </TR>
  </TBODY>
</TABLE>
